package com.juzi.inner.inner_local;


/**
 * 目标：了解局部内部类的语法
 */
public class Test {

    static {
        class Dog{

        }

        class Animal{

        }


    }

    public static void main(String[] args) {
        class Cat{
            private String name;


            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }
        }

        Cat c = new Cat();
        c.setName("蓝胖子");
        System.out.println(c.getName());
    }
}
